package com.lizx.persional.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.mapper.SqlCondition;
import com.lizx.persional.common.base.SuperEntity;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * <p>
 * </p>
 *
 * @author 李振兴
 * @since 2018-02-27
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
public class Users extends SuperEntity {

    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private UserInfo userInfo;
    /**
     * 登录名
     */
    @TableField(value = "login_name", condition = SqlCondition.LIKE)
    private String loginName;
    /**
     * 密码
     */
    private String password;
    /**
     * 部门id
     */
    @TableField("department_id")
    private Long departmentId;

    @TableField(exist = false)
    private String departmentName;
    /**
     * 最后登陆时间
     */
    @TableField("gmt_last_login")
    private Date gmtLastLogin;


}
